package com.huajx.jrb.controller;

import com.huajx.core.annotation.Route;
import com.huajx.core.common.RestResult;
import com.huajx.core.handler.Controller;
import com.huajx.jrb.model.User;

@Route(controllerKey = "/login")
public class LoginController extends Controller {
    public void account(){

        String username = getPara("username");
        String password = getPara("password");
        String type = getPara("type");
        String _allow_anonymous = getPara("_allow_anonymous");

        User user = new User();
        user.setName("孙其");
        user.setAvatar("assets/tmp/img/avatar.jpg");
        user.setEmail("");
        user.setId(1L);
        user.setToken("1");

        renderJson(RestResult.buildSuccess(user));
    }
}
